xiaoming_dict = {"name": "小明"}
print(xiaoming_dict["name"])
print(xiaoming_dict.get('name123'))

xiaoming_dict["age"] = 18
xiaoming_dict["name"] = "小小明"

print(xiaoming_dict)

print('-' * 50)
xiaoming_dict = {"name": "小明","age": 18}

print(len(xiaoming_dict))
temp_dict = {"height": 1.75,"age": 20}
xiaoming_dict.update(temp_dict)
for key in xiaoming_dict:
    print(key)
print('-' * 50)
for v in xiaoming_dict.values():
    print(v)
print('-' * 50)
for k, v in xiaoming_dict.items():
    print(k, v)